package com.niknik.woody.utils.wunit.log;

import com.niknik.woody.utils.ExCreateAndLogFor;

public final class WLog {

  private WLog() {
    throw ExCreateAndLogFor.methodBlocked();
  }

  public static WLogger get(Class clazz) {
    return new InterceptableLogger(new CoreLogger(clazz));
  }

  public static void interceptWith(WLogger interceptor) {
    InterceptableLogger.interceptWith(interceptor);
  }

  public static void removeInterceptor() {
    InterceptableLogger.removeInterceptor();
  }

  public static boolean isIntercepted() {
    return InterceptableLogger.isIntercepted();
  }
}